﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ViewPackageTest.aspx.cs" Inherits="ViewbyProduct_ViewPackage_ViewPackageTest" Title="查看包装记录" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script type="text/javascript" src="../../js/my97datepicker/WdatePicker.js"></script>

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
<div>
    <br />
        <div style="float:left; width: 80%;">
    <table style="width: 100%">
        <tr>
            <td >
                <asp:Label ID="Label1" runat="server" Text="客户名称："></asp:Label>
                <asp:DropDownList ID="DropDownList1" runat="server" Height="23px"  
                    onselectedindexchanged="DropDownList1_SelectedIndexChanged" 
                    AutoPostBack="True">
                </asp:DropDownList>
            </td>
            <td >
                <asp:Label ID="Label2" runat="server" Text="产品名称："></asp:Label>
                <asp:DropDownList ID="DropDownList2" runat="server" Height="23px" >
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td >
                <asp:Label ID="Label3" runat="server" Text="起始时间："></asp:Label>
                <input type="text" runat="server" id="TextBox3" 
                    onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"/>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="TextBox3" ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
            </td>
            <td >
                <asp:Label ID="Label4" runat="server" Text="终止时间："></asp:Label>
                <input type="text" runat="server" id="TextBox4" 
                    onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"/>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="TextBox4" ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
            </td>
        </tr>
    </table>
    </div> 
        <div style="float:left;clear:right; height: 38px; width: 15%;">
            <asp:Button ID="Button1" runat="server" Text="查 询" onclick="Button1_Click" ValidationGroup="VGroup1" />
        </div> 
        <br />
    <div style="float:left; clear:left; width:100%">        
        <br />  
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
            AutoGenerateColumns="False" BackColor="White" BorderColor="White" 
            BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" 
            GridLines="None" onpageindexchanging="GridView1_PageIndexChanging" 
            PageSize="20" Width="100%" EmptyDataText="没有相关数据！" 
            onrowdatabound="GridView1_RowDataBound" ShowFooter="True">
            <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
            <Columns>
                <asp:TemplateField HeaderText="成品序列号">
                    <FooterTemplate>
                        共<asp:Label ID="Label7" runat="server"></asp:Label>记录
                    </FooterTemplate>
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink1" runat="server" 
                            NavigateUrl='<%# Eval("PackageProductSN", "~/ViewbyProduct/ViewProductState/ProductSNLifeTime.aspx?ProductSN={0}") %>' 
                            Text='<%# Eval("PackageProductSN") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="packer" HeaderText="包装员" />
                <asp:BoundField DataField="PackageTime" HeaderText="包装时间" />
            </Columns>
            <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
            <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
        </asp:GridView>
        <br />
    
    </div>
</div> 
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

